/**
 * jwt配置
 *
 * @param null
 * @return null
 * @throws
 * @version 1.0.0
 * @author luwc
 * @time 2023/4/21 15:47:13
 */
package com.lwc.cfdns.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "config.jwt")
public class JwtConfig {
    private static String header;
    private static String tokenPrefix;
    private static String secret;
    private static long expireTime;

    public static String getHeader() {
        return header;
    }

    public static String getTokenPrefix() {
        return tokenPrefix;
    }

    public static String getSecret() {
        return secret;
    }

    public static long getExpireTime() {
        return expireTime;
    }

    public synchronized void setHeader(String header) {
        JwtConfig.header = header;
    }

    public synchronized void setTokenPrefix(String tokenPrefix) {
        JwtConfig.tokenPrefix = tokenPrefix;
    }

    public synchronized void setSecret(String secret) {
        JwtConfig.secret = secret;
    }

    public synchronized void setExpireTime(long expireTime) {
        JwtConfig.expireTime = expireTime;
    }
}
